{php preg_match_all("/./us", dr_preg_html($fufeineirong),$match);}
{php $neirongshuliangjifen = count($match[0]);}
<div class="d-kuan d-yuanjiao-10 d-neikuang-10 d-buhuanhang">
	<span class="d-zitiyanse-hongse d-wenzi-14">
		{SITE_SCORE}阅读内容
	</span>

</div>
{if $member}
    {php $neirongjifens = \Phpcmf\Service::M()->db->table('1_'.MOD_DIR.'_neirongjifen')->where('cid', $id)->where('uid', $member.uid)->get()->getRowArray();}
    {if $neirongjifens || $uid == $member.uid}
	<!-- || $uid == $member.uid-->
		<div id="tuzhanshi" class="d-neirong">
			{if $shenhe == 0}
			内容审核中...
			{else}
			{$fufeineirong}
			{/if}
		</div>
	{else}
	    <div class="d-kuan d-xia-15 d-bian-1-hui d-yuanjiao-10 d-neikuang-10 d-buhuanhang">
	    	<div class="d-kuan-70 d-imgs">
	    		<img src="{HOME_THEME_PATH}web/img/yuedu.png" width="40" height="40"/>
	    	</div>
	    	<div class="d-kuan">
	    		<div class="pull-left">
	    			
	    			<div class="d-wenzi-14">
						<span>
							<img class="d-shang-2" src="{HOME_THEME_PATH}web/img/jinbi.svg" height="14" width="14">
						</span>
						{$neirongjifen} {SITE_SCORE} /
						{if $youxiaoshijian == 0}永久有效00{else} 有效 {$youxiaoshijian} 天{/if}
					</div>
					<div class="d-wenzi-14 ">
						{SITE_SCORE}阅读 
					</div>
	    		</div>
	    		<div class="d-kuan-100 d-you-10 pull-right d-quxian-0">
	    			<a href="{dr_url(MOD_DIR.'/buyyuedujifen/index', ['fid' => $ci->module['form']['son']['field']['jifenxia']['id'],'id'=> $id])}">
	    			<div class="d-kuan-50 d-hanggao-30 d-wenzi-juzhong d-shang-5 d-wenzi-12 d-beijing-hei d-yuanjiao-20 pull-right d-zitiyanse-bai">
	    				购 买
	    			</div>
	    			</a>
	    		</div>
	    	</div>
			
	    </div>
		<div class="d-kuan d-wenzi-juzhong d-quxian-0">
			
			<a class="d-kuai" href="{dr_url(MOD_DIR.'/buyyuedujifen/index', ['fid' => $ci->module['form']['son']['field']['jifenxia']['id'],'id'=> $id])}">
				<span class="d-zitiyanse-hui d-wenzi-14">
					剩余 {$neirongshuliangjifen} 个文字 支付 
					<span class="d-zitiyanse-hongse">{$neirongjifen} {SITE_SCORE}</span> 阅读 
				</span>
				<br>
				<img src="{HOME_THEME_PATH}web/img/shengyu.png" width="30" height="30"/>
			</a>
		</div>
	{/if}
{else}
    <div class="d-kuan d-xia-15 d-bian-1-hui d-yuanjiao-10 d-neikuang-10 d-buhuanhang">
    	<div class="d-kuan-70 d-imgs">
    		<img src="{HOME_THEME_PATH}web/img/yuedu.png" width="40" height="40"/>
    	</div>
    	<div class="d-kuan">
    		<div class="pull-left">
    			<div class="d-wenzi-14 d-zitiyanse-hui">
    				请登录后阅读
    			</div>
    			<div class="d-wenzi-14 d-zitiyanse-hui"><img class="d-shang-2" src="{HOME_THEME_PATH}web/img/jinbi.svg" height="14" width="14"> {$neirongjifen} / {SITE_SCORE}阅读 </div>
    		</div>
    		<div class="d-kuan-100 d-you-10 pull-right d-quxian-0">
    			<a href="{dr_member_url("login/index", ["back" => urlencode($my_web_url)])}">
    			<div class="d-kuan-50 d-hanggao-30 d-wenzi-juzhong d-shang-5 d-wenzi-12 d-beijing-hei d-yuanjiao-20 pull-right d-zitiyanse-bai">
    				购 买
    			</div>
    			</a>
    		</div>
    	</div>
    </div>
	<div class="d-kuan d-wenzi-juzhong d-quxian-0">
		
		<a class="d-kuai" href="{dr_member_url("login/index", ["back" => urlencode($my_web_url)])}">
			<span class="d-zitiyanse-hui d-wenzi-14">
				剩余 {$neirongshuliangjifen} 个文字 支付 
				<span class="d-zitiyanse-hongse">{$neirongjifen} {SITE_SCORE}</span> 阅读 
			</span>
			<br>
			<img src="{HOME_THEME_PATH}web/img/shengyu.png" width="30" height="30"/>
		</a>
	</div>
{/if}
<style>
	.d-imgs img {
		max-width: 100%;
		margin-bottom: 0px;
	}
</style>